package com.longqin.business.mapper;

import com.longqin.business.entity.DesDiagram;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author longqin
 * @since 2024-11-22
 */
@Mapper
public interface DesDiagramMapper extends BaseMapper<DesDiagram> {

    List<DesDiagram> selectPage(@Param("name") String name, @Param("organizationId") Integer organizationId, @Param("startIndex") Integer startIndex, @Param("size") Integer size);
	
	int selectCount(@Param("name") String name, @Param("organizationId") Integer organizationId);
	
	int delete(@Param("id") Integer id);
	
	List<DesDiagram> selectByCreator(@Param("creator") Integer creator);
	
	String selectDiagramData(@Param("dataSql") String dataSql);
}
